<?xml version="1.0" encoding="utf-8"?>

<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="/">
    <div>
    <table class="CalendarList">
    <tr class="CalendarListHeader">
      <td>name</td>
      <td>id</td>
    </tr>
    <xsl:for-each select="feed/entry">
      <tr>
        <xsl:choose>
          <xsl:when test="position() mod 2 = 1">
            <xsl:attribute name="class">CalendarRowOdd</xsl:attribute>
          </xsl:when>
            <xsl:otherwise>
            <xsl:attribute name="class">CalendarRowEven</xsl:attribute>
          </xsl:otherwise>
        </xsl:choose>

        <td>
          <xsl:value-of select="title" />
        </td>
        <td>
          <xsl:value-of select="id" />
        </td>
      </tr>
    </xsl:for-each>
  </table>
  </div>
  </xsl:template>
</xsl:stylesheet> 

